/*
 * Copyright @ 2024 weili23
 * com.example.mythread.a08threadExerciseGift 15:52
 * All right reserved.
 */

package com.example.mythread.a08threadExerciseGift;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/10/21 15:52
 * @version: v1.0
 */
public class ThreadDemo {
    public static void main(String[] args){

        MyGift myGift1 = new MyGift();
        MyGift myGift2 = new MyGift();
        myGift1.setName("线程1");
        myGift2.setName("线程2");
        myGift1.start();
        myGift2.start();
    }
}
